package cn.lirenyi.order.domain;

import cn.lirenyi.basic.domain.BaseDomain;
import cn.lirenyi.org.domain.Shop;
import cn.lirenyi.pet.domain.Pet;
import cn.lirenyi.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AdoptOrder extends BaseDomain {
    private String digest;
    // 0待支付     1代发货    2待确认    3已完成    -1取消
    private Integer state = 0;
    private BigDecimal price;
    private String orderSn;
    private String paySn;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastPayTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastConfirmTime;
    private Long pet_id;
    private Long user_id;
    private Long shop_id;
    private Pet pet;
    private User user;
    private Shop shop;
}
